﻿<ResourceDictionary x:Class="SNSpirit.App"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:docCtl="clr-namespace:Snowdreamist.Windows.Document">

    <Style x:Name="DefaultErrorDocumentObjectStyle" TargetType="{x:Type docCtl:ErrorDocumentObject}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type docCtl:ErrorDocumentObject}">
                    <Border BorderBrush="Gray" BorderThickness="1">
                        <StackPanel Orientation="Vertical">
                            <TextBlock Margin="5" Text="Error" />
                            <TextBlock Margin="5" Text="{Binding RelatedSourceElementType}" />
                            <Expander Margin="5"
                                      Header="Error"
                                      IsExpanded="False">
                                <TextBlock Text="{Binding Error}" />
                            </Expander>
                        </StackPanel>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>